import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

const app = createApp(App)

// 核心配置：添加全局API地址 (在 use() 和 mount() 之间插入)
app.config.globalProperties.$apiBase = 'http://localhost:5000'  // 端口与Flask后端一致

app.use(createPinia())
app.use(router)

app.mount('#app')
